package functions 
{	import functions.FunctionNode;	/**
	 * @author admin
	 */
	public class CondFunctionNode extends FunctionNode 
	{
		public function AddFunctionNode()
		{
			funcname = "cond";	
			functiontype = SPECIALFUNCTION;
		}
		
		override public function getValue( args : XML, scope : Object ) : XML
		{
			var returnXML:XML = <list />;
			// we receive a list of mini-lists.
			// each mini-list has two elements:
			// a predicate and a consequent.
			// if the predicate returns true, or <t/>,
			// then eval the consequent and break out of the loop.
			
			// this of course means I have to write predicates!
			
			
			
			return returnXML;
		}	}}